<template>
  <div>
    <div class="manual-entry-container">
      <div>
        <div
          :class="changeTab == 'jbxx' ? 'active-tab' : ''"
          @click="changeTabClick('jbxx')"
        >
          基本信息
        </div>
        <div
          :class="changeTab == 'xksm' ? 'active-tab' : ''"
          @click="changeTabClick('xksm')"
        >
          选课说明
        </div>
        <div
          :class="changeTab == 'sxyfw' ? 'active-tab' : ''"
          @click="changeTabClick('sxyfw')"
        >
          选课学员范围
        </div>
      </div>
      <div v-show="changeTab == 'jbxx'">
        <ul>
          <li>
            <span class="active">批次名称<span>*</span></span>
            <div class="cdmc">
              <el-input v-model="batchName" size="mini"></el-input>
            </div>
          </li>
          <li>
            <span class="active">选课学期<span>*</span></span>
            <div>
              <el-select
                v-model="ElectiveSemester"
                placeholder="请选择"
                size="mini"
              >
                <el-option
                  v-for="(item, index) in ElectiveSemesterList"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                >
                </el-option>
              </el-select>
            </div>
          </li>
          <li>
            <span class="active">选课负责人</span>
            <div class="cdmc">
              <span>{{ chargePerson }}</span
              ><i class="el-icon-edit edit-icon" @click="editChargePerson"></i>
            </div>
          </li>
          <li>
            <span class="active" style="height: 140px">选课时间</span>
            <div>
              <el-date-picker
                v-model="selectionTime1"
                type="datetime"
                placeholder="选择日期时间"
                default-time="12:00:00"
              >
              </el-date-picker>
              --
              <el-date-picker
                v-model="selectionTime2"
                type="datetime"
                placeholder="选择日期时间"
                default-time="12:00:00"
              >
              </el-date-picker>
            </div>
          </li>
          <li>
            <span class="active" style="height: 140px">本次选课限制</span>
            <div class="xkxx">
              <div>所选课程不超过</div>
              <el-input
                size="mini"
                v-model="limitCourse"
                style="width: 100px !important; margin: 5px"
              ></el-input>
              <div>分，所选的门数不超过</div>
              <el-input
                size="mini"
                v-model="limitNumber"
                style="width: 100px !important; margin: 5px"
              ></el-input>
              <div>门</div>
            </div>
          </li>
        </ul>
      </div>
      <div v-show="changeTab == 'xksm'">
        <div style="height:calc(100vh - 320px);width: calc(100% - 140px);margin: 0 auto;">
          <ckeditor
            style="height:calc(100vh - 320px);"
            ref="editor"
            :config="editorConfig"
            v-model="editorData"
            @blur="onBlur"
            @input="onTextChange">
          </ckeditor>
        </div>
      </div>
      <div v-show="changeTab == 'sxyfw'">
        <div class="top-btn">
          <el-button type="warning" size="mini" @click="addStuSelectRange">添加选课学员范围</el-button>
        </div>
        <div class="assessment-container">
          <div class="table-container">
            <el-table
              :data="tableData"
              border
              class="table-data"
              row-class-name="row-class"
              cell-class-name="cell-class"
              header-row-class-name="header-row-class"
              header-cell-class-name="header-cell-class"
              style="height: 580px; overflow-y: auto"
            >
              <el-table-column label="操作" align="center" width="180px">
                <template slot-scope="scope">
                  <div style="display: flex; justify-content: center">
                    <el-button type="warning" icon="el-icon-delete" size="mini" @click="handleDelXkfw(scope.row.id)">删除</el-button>
                  </div>
                </template>
              </el-table-column>
              <el-table-column
                prop="trainingLevel"
                label="培养层次"
                align="center"
              >
              </el-table-column>
              <el-table-column prop="year" label="年级" align="center">
              </el-table-column>
              <el-table-column
                prop="specialtyName"
                label="专业【校内代码】"
                align="center"
              >
              </el-table-column>
            </el-table>
          </div>
        </div>
      </div>
      <div class="btn-caozuo">
        <el-button type="warning" size="mini" @click="toSave">保存</el-button>
        <el-button type="success" size="mini" @click="toSetClass">进入设置班级</el-button>
        <el-button type="danger" size="mini" @click="toCancel">取消</el-button>
      </div>
    </div>
    <el-dialog
      title="添加选课学员范围"
      :visible.sync="addSelectClassRangeDialog"
      width="1200px"
      class="xzjy"
    >
      <div>
        <div
          class="wrapper-container"
          style="display: flex; flex-direction: column; width: 100%"
        >
          <div class="search-container">
            <div class="search-container-left" style="margin-left: 15px;">
              <div
                class="search-container-item"
                v-for="(select, index) in selectList_Student"
                :key="index"
              >
                <div v-if="select.type === 'select'" class="box">
                  <span v-show="select.name">{{ select.name }}</span>
                  <el-select
                    v-model="select.val"
                    style="width: 90px"
                    size="mini"
                    placeholder="请选择"
                  >
                    <el-option
                      v-for="item in select.valList"
                      :key="item.id"
                      :label="item.name"
                      :value="item.id"
                    >
                    </el-option>
                  </el-select>
                </div>
              </div>

              <div class="search-button">
                <img
                  src="../../../../../assets/assessment/icon-search.png"
                  alt=""
                />
                <span @click="queryInfo">查询</span>
              </div>
            </div>
          </div>

          <div class="assessment-container" style="width: 100%">
            <div
              class="table-container"
              style="width: 95%; margin: 20px auto 0"
            >
              <el-table
                :data="other_tablesData"
                border
                class="table-data"
                row-class-name="row-class"
                cell-class-name="cell-class"
                header-row-class-name="header-row-class"
                header-cell-class-name="header-cell-class"
                style="height: 380px; overflow-y: auto"
                @selection-change="handleOtherTable"
              >
                <el-table-column align="center" type="selection" width="80">
                </el-table-column>
                <el-table-column prop="trainingLevel" label="培养层次" align="center">
                </el-table-column>
                <el-table-column prop="year" label="年级" align="center">
                </el-table-column>
                <el-table-column prop="specialtyName" label="专业【校内代码】" align="center">
                </el-table-column>
              </el-table>
            </div>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <div class="btn-caozuo">
          <el-button type="success" size="mini" @click="submitSelectRange">确定</el-button>
        </div>
      </span>
    </el-dialog>

    <el-dialog
      title="选课负责人"
      :visible.sync="editChargePersonDialog"
      width="1200px"
      class="xzjy"
    >
      <div>
        <el-row>
          <el-col :span="4" class="tree">
            <el-tree
              default-expand-all
              :data="data"
              :props="defaultProps"
              @node-click="handleNodeClick"
              style="color: #004ca7;font-weight: bold;background: #f0f2f5;"
            ></el-tree>
          </el-col>
          <el-col :span="20" style="border-left: 1px solid #004ca7">
            <div
              class="wrapper-container"
              style="display: flex; flex-direction: column; width: 100%"
            >
              <div class="search-container">
                <div class="search-container-left">
                  <div
                    class="search-container-item query-btn"
                    v-for="(select, index) in selectList_Teacher"
                    :key="index"
                  >
                    <div v-if="select.type === 'btn'" class="box">
                      <span class="demonstration" v-show="select.name">{{
                        select.name
                      }}</span>
                      <el-input
                        v-model="select.val"
                        placeholder="请输入内容"
                      ></el-input>
                    </div>
                  </div>

                  <div class="search-button">
                    <img
                      src="../../../../../assets/assessment/icon-search.png"
                      alt=""
                    />
                    <span @click="queryInfo">查询</span>
                  </div>

                  <div class="select-list">
                    <div class="yx">已选：</div>
                    <div class="cont">
                      <div
                        v-for="(item, index) in multipleSelection"
                        :key="index"
                        class="tip"
                      >
                        {{ item.xm }}
                      </div>
                    </div>
                  </div>
                </div>
              </div>

              <div class="assessment-container" style="width: 100%">
                <div
                  class="table-container"
                  style="width: 95%; margin: 20px auto 0"
                >
                  <el-table
                    :data="tableData_People"
                    border
                    class="table-data"
                    row-class-name="row-class"
                    cell-class-name="cell-class"
                    header-row-class-name="header-row-class"
                    header-cell-class-name="header-cell-class"
                    style="height: 380px; overflow-y: auto"
                    @selection-change="handleSelectionChange"
                  >
                    <el-table-column align="center" type="selection" width="80">
                    </el-table-column>
                    <el-table-column prop="bh" label="编号" align="center">
                    </el-table-column>
                    <el-table-column prop="xm" label="姓名" align="center">
                    </el-table-column>
                    <el-table-column prop="xb" label="性别" align="center">
                    </el-table-column>
                    <el-table-column prop="jszc" label="职称" align="center">
                    </el-table-column>
                    <el-table-column
                      prop="lb"
                      label="类别"
                      align="center"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="gwbzlb"
                      label="岗位编制类别"
                      align="center"
                    >
                    </el-table-column>
                  </el-table>
                </div>
              </div>
            </div>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footer">
        <div class="btn-caozuo">
          <el-button type="success" @click="handleSave">保存</el-button>
          <el-button type="warning" @click="cancelDialog">取消</el-button>
        </div>
      </span>
    </el-dialog>
  </div>
</template>

<script>
  import ButtonItem from "@/components/ButtonItem.vue";
  import {
    addXyXkfwInfo,
    allTeacherList,
    getAddXyXkfw,
    getXyXkfwInfo,
    queryCommonNj,
    queryCommonPyccId,
    queryCommonXueqi,
    teacherTree,
    updateXkpc,
    xkInfo,
    deleteXyXkfw
  } from "@/api/trainingManagement/place.js";

  export default {
    components: {
      ButtonItem,
    },
    mounted() {
      this.xkpcId = this.$route.query.xkpcId
      this.getXkInfo();
      this.queryCommonXueqi();
      this.teacherTreeInfo();
      this.queryTeacherList();
      this.queryCommonNj();
      this.queryCommonPycc();
      this.xkxyfwInfo();
    },
    data() {
      return {
        xkpcId: '',

        editorData: '',
        editorConfig: {},
        changeTab: "jbxx", //切换标签
        batchName: "", //批次名称
        ElectiveSemester: "", //选课学期
        ElectiveSemesterList: [], //选择列表
        chargePerson: "", //选课负责人
        selectionTime1: "", //选课时间
        selectionTime2: "", //选课时间
        limitCourse: "", //本次选课限制
        limitNumber: "", // 本次选课限制
        editChargePersonDialog: false, //选课负责人
        // 校区列表
        data: [],
        defaultProps: {
          children: "children",
          label: "name",
        },
        tableData_People: [], //调整后教员表格
        selectList_Teacher: [
          {
            type: "btn",
            name: "搜 索：",
            val: "",
          },
        ],
        selectList_Student: [{
          type: "select",
          name: "年级：",
          val: "",
          valList: []
        }, {
          type: "select",
          name: "培养层次：",
          val: "",
          valList: []
        },],//添加学员选课范围
        // 选择列表数据
        multipleSelection: [],
        multipleOtherSelection: [],
        tableData: [], //表格数据
        addSelectClassRangeDialog: false, //添加选课学员范围弹窗
        other_tablesData: [], //未选择的课程
      };
    },
    methods: {
      getAddXyXkfwInfo() {
        let year = this.selectList_Student[0].val
        let pycc = this.selectList_Student[1].val
        getAddXyXkfw(year, pycc).then(res => {
          if (res.data.code == 200) {
            this.other_tablesData = res.data.data;
          }
        })
      },
      xkxyfwInfo() {
        getXyXkfwInfo(this.xkpcId).then(res => {
          if (res.data.code == 200) {
            this.tableData = res.data.data;
          }
        })
      },


      // 获取培养层次列表
      async queryCommonPycc() {
        const res = await queryCommonPyccId();
        if (res.data.code == 200) {
          this.selectList_Student[1].valList = res.data.data;
        }
      },
      // 获取年级列表
      async queryCommonNj() {
        const res = await queryCommonNj("");
        if (res.data.code == 200) {
          this.selectList_Student[0].valList = res.data.data;
        }
      },
      toSave() {
        let data = {
          id: this.xkpcId,
          name: this.batchName,
          xueqi: this.ElectiveSemester,
          xkfzr: this.chargePerson,
          startTime: this.selectionTime1,
          endTime: this.selectionTime2,
          fractionLimit: this.limitCourse,
          chooseLimit: this.limitNumber,
          courseRemark: this.editorData
        }
        updateXkpc(data).then(res => {
          if (res.data.code == 200) {
            this.$message.success('保存成功')
            this.getXkInfo()
          }
        })
      },
      getXkInfo() {
        xkInfo(this.xkpcId).then(res => {
          if (res.data.code == 200) {
            this.batchName = res.data.data.name;
            this.ElectiveSemester = res.data.data.xueqi;
            this.chargePerson = res.data.data.xkfzr;
            this.selectionTime1 = res.data.data.startTime;
            this.selectionTime2 = res.data.data.endTime;
            this.limitCourse = res.data.data.fractionLimit;
            this.limitNumber = res.data.data.chooseLimit;
            this.editorData = res.data.data.courseRemark;
          }
        })
      },
      teacherTreeInfo() {
        teacherTree("").then(res => {
          if (res.data.code == 200) {
            console.log('====', res.data.data)
            this.data = res.data.data
          }
        })
      },
      handleSave() {
        if (this.multipleSelection.length <= 0) {
          this.$message.warning('请选择选课负责人')
          return;
        }

        if (this.multipleSelection.length > 1) {
          this.$message.warning('选课负责人只能有一位')
          return;
        }
        // let tempTeacherArray = []
        // this.multipleSelection.forEach(item=>{
        //   tempTeacherArray.push(item.xm)
        // })
        // this.chargePerson = tempTeacherArray.toString()
        this.chargePerson = this.multipleSelection[0].xm
        this.editChargePersonDialog = false;
      },
      queryTeacherList() {
        let data = {
          "xm": this.xm,
          "xi": this.xi,
          "jys": this.jys
        }
        allTeacherList(data).then(res => {
          if (res.data.code == 200) {
            this.tableData_People = res.data.data;
          }
        })
      },
      // 获取学期列表
      async queryCommonXueqi() {
        const res = await queryCommonXueqi();
        if (res.data.code == 200) {
          this.ElectiveSemesterList = res.data.data;
        }
      },
      toSetClass() {
        this.$router.push({
          path: "/admin/course/selection/setTeachingClass",
          query: {
            xkpcId:this.xkpcId
          }
        })
      },
      cancelDialog() {
        this.$router.push("/admin/course/selection/courseBatchManagement");
      },
      toCancel() {
        this.$router.push("/admin/elective/startClassManagement");
      },
      // 失去交点获取文档内容
      getData() {
        console.log(this.editorData, "editorData === ")
      },
      // 添加选课学员范围弹窗 确定事件
      addStuSelectRange() {
        this.getAddXyXkfwInfo();
        this.addSelectClassRangeDialog = true;
      },
      // 弹窗确定事件
      submitSelectRange() {
        let data = {
          id: this.xkpcId,
          ndzyIdList: this.multipleOtherSelection
        }
        addXyXkfwInfo(data).then(res => {
          if (res.data.code == 200) {
            this.$message.success('添加选课成员成功');
            this.xkxyfwInfo();
            this.addSelectClassRangeDialog = false;
          }
        })
      },
      changeTabClick(val) {
        this.changeTab = val;
      },
      submitDialog() {
        this.cancelDiaog();
      },
      cancelDiaog() {
        this.editChargePersonDialog = false;
      },
      handleSelectionChange(val) {
        this.multipleSelection = val;
      },
      handleOtherTable(val) {
        this.multipleOtherSelection = val;
      },
      // 修改选课负责人
      editChargePerson() {
        this.editChargePersonDialog = true;
      },
      // 数据查询
      queryInfo() {
        this.getAddXyXkfwInfo()
      },
      handleNodeClick(data, node) {
        if (node.level == 2) {
          this.xi = node.parent.data.name;
          this.jys = data.name;
        }
        if (node.level == 1) {
          this.xi = data.name;
          this.jys = '';
        }
        this.queryTeacherList()
      },
      handleDelXkfw(id){
        deleteXyXkfw(id).then(res=>{
          if(res.data.code == 200){
            this.$message.success('删除成功')
            this.xkxyfwInfo()
          }
        })
      }
    },
  };
</script>

<style scoped lang="less">
  .manual-entry-container {
    > div:nth-child(1) {
      margin: 30px 80px;
      border-bottom: 1px solid #004ca7;
      display: flex;
      align-items: center;
      cursor: pointer;

      > div {
        padding: 5px 20px;
        border-radius: 5px 5px 0 0;
        margin-right: 15px;
        color: #004ca7;
        font-weight: bold;
        background: rgba(77, 129, 192, 0.1);
      }
      .active-tab {
        background: #004ca7;
        color: #fff;
      }
    }
    > div:nth-child(2) {
      width: calc(100% - 140px);
      // height: 785px;
      border: 1px solid rgba(0, 76, 167, 0.8);
      border-radius: 6px;
      margin: 50px auto 0;
      ul {
        list-style: none;
        li {
          border-bottom: 1px solid rgba(0, 76, 167, 0.4);
          height: auto;
          display: flex;
          align-items: center;
          > span {
            box-sizing: border-box;
            display: inline-block;
            font-size: 14px;
            color: rgba(0, 76, 167, 1);
            padding-left: 54px;
            border-right: 1px solid rgba(0, 76, 167, 0.4);
            height: 100px;
            padding-top: 40px;
            vertical-align: middle;
            &:nth-child(n) {
              width: 357px;
            }
            &:nth-child(2n) {
              width: 444px;
            }
            &:last-child {
              border-right: none;
            }
            &.active {
              font-size: 16px;
              color: rgba(0, 76, 167, 1);
              font-weight: bold;
              background: rgba(77, 129, 192, 0.1);
              text-align: center;
              padding-left: 0;
            }
            > span {
              color: red;
            }
          }
          > div {
            width: 800px;
            margin-left: 100px;
          }
        }
        &:nth-child(1) {
          li {
            > span {
              height: 100px;
            }
            > div {
              width: 800px;
              margin-left: 100px;
            }
          }
        }
        &:nth-child(3) {
          li {
            border-bottom: 1px solid rgba(0, 76, 167, 0.4);
            display: flex;
            align-items: center;
            > span {
              width: 400px;
              text-align: center;
              padding-left: 0;
              height: 60px;
              &:nth-child(1) {
                width: 144px;
              }
              &:nth-child(2) {
                width: 180px;
              }
              &:nth-child(3) {
                width: 289px;
              }
              &:nth-child(4) {
                width: 196px;
              }
              &:nth-child(5) {
                width: 197px;
              }
              &:nth-child(6) {
                width: 197px;
              }
              &:nth-child(7) {
                width: 198px;
                padding-top: 8px !important;
                > span {
                  display: inline-block;
                  width: 121px;
                  height: 28px;
                  border: 1px solid #5230e9;
                  background: rgba(235, 230, 255, 1);
                  opacity: 1;
                  border-radius: 4px;
                  font-size: 14px;
                  font-weight: 400;
                  color: #5230e9;
                  line-height: 18px;
                  margin-top: 8px;
                  padding: 5px 10px;
                  cursor: pointer;
                }
              }
              &:nth-child(8) {
                width: 150px;
              }
              &:nth-child(9) {
                width: 182px;
              }
              &.active {
                border-top: 1px solid rgba(0, 76, 167, 0.4);
                height: 73px;
                padding-top: 25px;
              }
            }
            &:nth-child(2) {
              > div {
                height: 57px;
                padding: 18px 30px;
                > span {
                  &:nth-child(1) {
                    font-size: 16px;
                    font-weight: bold;
                    color: #004ca7;
                  }
                  &:nth-child(2) {
                    font-size: 14px;
                    color: #004ca7;
                  }
                }
              }
            }
          }
        }
      }
      > div {
        padding: 14px 83px;
        height: 78px;
        > div:nth-child(1) {
          font-size: 16px;
          font-weight: bold;
          color: #004ca7;
          margin-bottom: 10px;
        }
        > div:nth-child(2) {
          > span {
            font-size: 14px;
            color: rgba(0, 76, 167, 1);
            margin-right: 57px;
            > span {
              color: rgba(255, 56, 25, 1);
            }
          }
        }
      }
    }
    .button-group {
      text-align: center;
      margin-top: 36px;
      > div {
        display: inline-block;
        padding: 6px 20px;
        background: rgba(255, 246, 239, 1);
        border: 1px solid rgba(243, 184, 21, 1);
        border-radius: 4px;
        font-size: 18px;
        font-weight: 400;
        color: rgba(243, 184, 21, 1);
        text-align: center;
      }
    }
    .select-show {
      height: 150px;
      width: 420px;
      overflow: auto;
      // border: 1px solid rgba(0, 76, 167, 0.8);

      .select-row {
        display: flex;
        margin: 10px 0;
        .text {
          border: 1px solid rgba(0, 76, 167, 0.8);
          padding: 2px 10px;
          border-radius: 5px;
          color: rgba(0, 76, 167, 0.8);
        }

        .edit-icon {
          color: #f5866a;
          display: flex;
          align-items: center;
          margin-left: 10px;
          cursor: pointer;
          font-size: 22px;
        }
      }
    }

    .select-major {
      display: flex;
      align-items: center;
      margin: 10px 0;
    }
  }

  .top-title {
    margin-top: 30px;
    margin-bottom: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #004ca7;
    > span {
      color: #ff3819;
    }
  }

  .btn-caozuo {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 800px;
    margin: 0 auto;
    padding-top: 50px;
  }

  /deep/ .el-input {
    width: 200px !important;
  }

  .cdmc {
    color: #004ca7;
    .edit-icon {
      font-size: 20px;
      color: #02c86c;
      margin-left: 10px;
      cursor: pointer;
    }
  }

  .time-select {
    height: 300px;
    padding: 20px 40px;
    margin: 0 !important;
    width: 850px !important;
    /deep/ .el-input {
      width: 150px !important;
    }
    > div {
      margin: 25px;
    }
  }

  .time3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    > span {
      font-size: 16px;
      color: #004ca7;
    }

    .mini-input {
      /deep/ .el-input {
        width: 50px !important;
      }
    }
  }
</style>
<style lang="less" scoped>
  // .assessment-container {
  .el-dialog__body {
    // height: 251px;
    .assessment-container {
      width: 100%;
      .table-container {
        height: 380px;
        overflow-y: auto;
        width: 100%;
        border: 0.8px solid #004ca7;
        border-radius: 9px;
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #004ca7;
      }
    }
  }

  .el-dialog__footer {
    padding: 10px 20px 45px;
  }

  .el-checkbox__inner:hover {
    border-color: #004ca7;
  }

  .el-checkbox__inner {
    border: 1px solid #004ca7;
    border-radius: 0;
    height: 18px;
    width: 18px;
  }

  .el-checkbox__inner::after {
    height: 10px;
    left: 6px;
  }

  .el-checkbox__input.is-checked .el-checkbox__inner,
  .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #004ca7;
    border-color: #004ca7;
  }

  .el-checkbox__input.is-checked + .el-checkbox__label {
    color: #004ca7;
  }

  .el-checkbox.is-bordered.is-checked {
    border-color: #004ca7;
  }

  .el-checkbox__input.is-focus .el-checkbox__inner {
    border-color: #004ca7;
  }

  .xkxx {
    display: flex;
    align-items: center;
    color: #004ca7;
  }
</style>

<style lang="less" scoped>
  @import "../../../../../styles/text.less";

  .assessment-container {
    width: 100%;
  }

  .assessment-container .table-container {
    width: calc(100% - 140px);
    margin: 10px 70px;
  }

  /deep/ .szjky .el-dialog__body {
    height: 432px;
  }

  .pagination-block {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
</style>
<style lang="less" scoped>
  @import "../../../../../styles/supervision.less";

  .wrapper-container {
    width: 1711px;
    margin: 0 auto;
  }

  /deep/ .table-container {
    .el-table td,
    .el-table th.is-leaf,
    .el-table--border,
    .el-table--group {
      border-color: #c7d7eb;
    }

    .el-table__header tr,
    .el-table__header th {
      padding: 0;
      height: 76px;
      background-color: #edf2f9;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 20px;
      color: #004ca7;
    }

    .el-table__body tr,
    .el-table__body td {
      padding: 0;
      height: 86px;
    }

    .wrapper-button {
      display: flex;
      flex-direction: column;
      align-items: center;

      > div {
        margin-bottom: 8px;
      }
    }
    .table-data {
      width: 100%;
      border: 0.8px solid #004ca7;
      border-radius: 9px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #004ca7;
    }
  }

  .wrapper-container .search-container .search-container-left {
    width: 100%;
    flex-wrap: wrap;
    .search-container-item {
      width: 12%;
      margin-right: 0px;
      .box {
        > span {
          text-align: left;
        }
        display: flex;
        justify-content: space-evenly;
        margin-bottom: 20px;
        align-items: center;
      }
      /deep/ .el-input {
        width: 100px !important;
      }
    }
  }

  .xzjy {
    /deep/ .el-date-editor.el-input {
      width: 110px;
    }
    /deep/ .el-input--medium {
      width: 110px;
      .el-input__inner {
        height: 28px;
        width: 110px;
        padding: 0px 18px;
      }
    }
  }

  /deep/ .el-table thead {
    color: #004ca7 !important;
  }

  .btn {
    margin-top: 271px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 271px;
    .submit {
      width: 84px;
      height: 27px;
      line-height: 8px;
    }
  }

  .bottom-block {
    // display: flex;
    flex-direction: row;
    justify-content: space-between !important;
    .export-button {
      width: 127px;
      height: 27px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      border-radius: 4px;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      margin-top: 14px;
      > img {
        width: 17px;
        height: 17px;
      }
      > span {
        margin-left: 12px;
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #f3b815;
      }
    }
    .text {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      line-height: 39px;
      color: #004ca7;
    }
  }

  .search-button {
    width: 77px;
    height: 28px;
    line-height: 28px;
    background: #f1f8fe;
    border: 1px solid #51aef6;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    > span {
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #51aef6;
    }
    > img {
      width: 20px;
      height: 20px;
      margin-right: 4px;
    }
  }

  .mar-lef-2 {
    margin-left: 20px;
  }

  .undeLine {
    text-decoration: underline;
    cursor: pointer;
  }

  .edit-icon {
    font-size: 20px;
    color: #02c86c;
    margin-left: 10px;
    cursor: pointer;
  }

  .body-manual-container {
    > div:nth-child(1) {
      width: 1200px;
      // height: 785px;
      border: 1px solid rgba(0, 76, 167, 0.8);
      border-radius: 6px;
      margin: 30px auto 0;
      ul {
        list-style: none;
        li {
          border-bottom: 1px solid rgba(0, 76, 167, 0.4);
          height: auto;
          > span {
            box-sizing: border-box;
            display: inline-block;
            font-size: 14px;
            color: rgba(0, 76, 167, 1);
            padding-left: 54px;
            border-right: 1px solid rgba(0, 76, 167, 0.4);
            height: 60px;
            padding-top: 20px;
            vertical-align: middle;
            &:nth-child(n) {
              // width: 357px;
              width: 290px;
            }
            // &:nth-child(2n) {
            // 	width: 444px;
            // }
            &:last-child {
              border-right: none;
            }
            &.active {
              font-size: 16px;
              color: rgba(0, 76, 167, 1);
              font-weight: bold;
              background: rgba(77, 129, 192, 0.1);
              text-align: center;
              padding-left: 0;
            }
            > span {
              color: rgba(255, 56, 25, 1);
            }
            > div {
              width: 100%;
            }
          }
        }
      }
    }
  }

  .add-icon {
    font-size: 28px;
    color: #f3b815;
    margin-left: 10px;
    cursor: pointer;
  }

  .date-select {
    height: 100%;
    padding: 0;
    padding-left: 40px;
    overflow-y: auto;
    width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .date-select-show {
    height: 100%;
    width: 500px;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .class-tip {
    color: #004ca7;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 40px;
  }

  .tip-text {
    color: #004ca7;
    margin-left: 5px;
    font-size: 16px;
  }

  /deep/ .xzjy .el-dialog__body {
    padding: 0 !important;
    .wrapper-container {
      width: 100% !important;
    }
    .wrapper-container .search-container .search-container-left {
      margin-left: 20px;
      flex-wrap: wrap;
      .search-container-item {
        width: 200px;
        margin-right: 10px;
        .box {
          > span {
            text-align: left;
            width: 80px;
          }
          display: flex;
          justify-content: space-evenly;
          margin-bottom: 20px;
          align-items: center;
        }
      }
    }
    /deep/ .el-input--medium {
      width: 110px;
      .el-input__inner {
        height: 28px;
        width: 110px;
        padding: 0px 18px;
      }
    }
  }

  /deep/ .el-tree-node__expand-icon.expanded {
    color: rgb(0, 76, 167);
  }

  .xzjy .tree {
    padding: 30px;
    color: rgb(0, 76, 167);
    font-weight: bold;
    font-size: 16px;
  }

  .select-list {
    display: flex;
    width: 650px;
    color: #004ca7;

    .yx {
      font-size: 18px;
      padding-left: 10px;
    }
    .cont {
      width: 580px;
      display: flex;
      overflow: auto;

      .tip {
        font-size: 18px;
        margin: 0 5px;
      }
    }
  }

  .top-btn {
    display: flex;
    flex-direction: row-reverse;
    margin-right: 60px;
    margin-bottom: 20px;
  }

  .xzjy {
    /deep/ .el-dialog {
      height: 700px;
    }
  }

  .query-btn {
    /deep/ .el-input__inner {
      height: 28px;
    }
  }
</style>
